package com.pan.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pan.dao.NoticeDao;
import com.pan.domain.Notice;
import com.pan.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeDao, Notice> implements INoticeService {
    @Autowired
    private NoticeDao noticeDao;

    @Override
    public List<Notice> getAllNote() {
        return noticeDao.getAllNote();
    }

    public List<Notice> getNotDeleteNotice() {
        return noticeDao.getNotDeleteNotice();
    }

    @Override
    public Notice getByIdE(Integer id) {
        return noticeDao.getByIdE(id);
    }

    @Override
    public Notice getLastNotice() {
        return noticeDao.getLastNotice();
    }

    @Override
    public Boolean updateByIdE(Notice notice) {
        return noticeDao.updateByIdE(notice);
    }

    @Override
    public Boolean LogicDelete(Integer id) {
        return noticeDao.LogicDelete(id);
    }

}
